summaryrefslogtreecommitdiffhomepage
path: root/files/pkgconf_host/bin/%[_target]-pkg-config
blob: 8dfd760d9282f4d61d5f75875ea8caf010a481b0 (plain)
1
2
3
4
5
6
7
8
#!/bin/sh
PREFIX=""; [ ${PREFIX:="${0%/*}"} = "${0}" ] && PREFIX="."; PREFIX="${PREFIX:+${PREFIX}/}..";
if [ "${#}" -eq 1 ]\
&& [ "x${1}" = "x--version" ]; then
	"${PREFIX}/bin/pkgconf" --version;
else
	"${PREFIX}/bin/pkgconf" --define-prefix "${@}";
fi;